package com.java.testdemo1;

public class Cat extends Animal {

	String animalName;

	@Override
	public Object dohunting() {
		System.out.println(animalName + " is hunting ...");
		return "null";
	}

	@Override
	public Object dohuntingPerson() {
		System.out.println(animalName + " is huntingPreson...");
		return "null";
	}

	public String getAnimalName() {
		return animalName;
	}

	public void setAnimalName(String animalName) {
		this.animalName = animalName;
	}

}
